const mongoose = require('mongoose');

const db_url = process.env.DB_URL || 'mongodb://localhost:27017/';

module.exports.db_connect = async (database = "test") => {
    await mongoose.connect(`${db_url}${database}`);
}

